package spring.cloud.tasks.tasks_assign_manager.task_item_assign_event;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class TaskExecutorOnlineOrOfflineTaskItemAssignEvent implements TaskItemAssignEvent {
    public static final String type_task_executor_online = "task_executor_online";
    public static final String type_task_executor_offline = "task_executor_offline";
    private String type;
    private String taskId;
    private String executorId;


    public TaskExecutorOnlineOrOfflineTaskItemAssignEvent(String type, String taskId, String executorId) {
        this.type = type;
        this.taskId = taskId;
        this.executorId = executorId;
    }
}
